﻿namespace D.UtilOrm
{
    /// <summary>
    /// 数据库设置
    /// </summary>
    public class DbConfig
    {
        /// <summary>
        /// 是否创建数据库
        /// </summary>
        public bool IsCreateDb { get; set; }

        /// <summary>
        /// 创建数据库的连接字符串脚本
        /// </summary>
        public string? CreateDbConn { get; set; }

        /// <summary>
        /// 创建数据库的脚本
        /// </summary>
        public string? CreateDbSql { get; set; }

        /// <summary>
        /// 数据库类型
        /// </summary>
        public int DbType { get; set; }

        /// <summary>
        /// 数据库字符串
        /// </summary>
        public string? ConnectionString { get; set; }

        /// <summary>
        /// 监听所有操作
        /// </summary>
        public bool MonitorCommand { get; set; }

        /// <summary>
        /// 监听Curd操作
        /// </summary>
        public bool Curd { get; set; }

        /// <summary>
        /// 是否自动迁徙实体到数据库
        /// </summary>
        public bool SyncStructure { get; set; }

    }
}
